import {wx} from '../../../weixin2alipay/index.js';
import {Page,Component} from '../../../weixin2alipay/index.js';
Page({
    "onShareAppMessage"(){
      return {
        "title":'获取发票抬头',
        "path":'packageAPI/pages/choose-invoice-title/choose-invoice-title'
};
    },
    "data":{
        "type":'',
        "title":'',
        "taxNumber":'',
        "companyAddress":'',
        "telephone":'',
        "bankName":'',
        "bankAccount":''
},
    "chooseInvoiceTitle"(){
      wx.chooseInvoiceTitle({
        "success":(res)=>{this.setData({
            "type":res.type,
            "title":res.title,
            "taxNumber":res.taxNumber,
            "companyAddress":res.companyAddress,
            "telephone":res.telephone,
            "bankName":res.bankName,
            "bankAccount":res.bankAccount
})},
        "fail":(err)=>{console.error(err)}
});
    }
});

